<% if @user.errors.any?  %>
  <div id="error-explanation">
    <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>
    <ul>
    <% @user.errors.full_messages.each do |message| %>
  <li><%=  message %></li>
  </ul>
  <% end %>
  </div>
  <% end %>

<%= form_for @user do |f| %>
  <%= f.label :first_name %>
  <%= f.text_field :first_name %>

  <%= f.label :last_name %>
  <%= f.text_field :last_name %>

  <%= f.label :email %>
  <%= f.email_field :email %>

  <%= f.label :password %>
  <%=  f.password_field :password %>

  <%= f.label :confirm_password %>
  <%=  f.password_field :password_confirmation %>

  <%= f.submit %>
<% end %>

